package com.example.wj.service;

import com.example.wj.dto.BookDto;
import com.example.wj.entity.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (Book)表服务接口
 *
 * @author makejava
 * @since 2024-04-19 15:03:25
 */
public interface BookService {

    Book insertOrUpdate(BookDto book);

    boolean deleteById(Integer id);

    BookDto queryById(Integer id);

    Page<Book> queryByPage(Book book, PageRequest pageRequest);

    List<BookDto> queryList(String keyWord);
}
